<template>
  <div>
    <div class="home-top bg-black display-flex ai-center p-2" >
      <img src="../assets/images/logo.png" alt="" class="img ml-3">
      <div class="pl-3 flex-1">
        <h1 class="font-m white">王者荣耀</h1>
        <p class="grey">团队成就更多</p>
      </div>
      <button type="button" class="bg-primary btn mt-1 mr-3">立即下载</button>
    </div>
    <div class="nav display-flex jc-around pt-3 pb-3 bg-primary white font-m">
      <div class="back-nav-item active">首页</div>
      <div class="back-nav-item">攻略中心</div>
      <div class="back-nav-item">赛事中心</div>
    </div>
     <router-view></router-view>
  </div>
</template>

<script>
// @ is an alias to /src
export default {
  name: 'Main',

}
</script>

<style lang="scss">
  .img{
    width: 30px;
    height: 30px;
  }
  .home-top{
    position: sticky;
    top: 0;
    z-index: 999;
  }
</style>
